<?php
header("Content-Type: text/html; charset=utf-8");

define('ROOT', str_replace('\\','/',dirname(__FILE__)).'/');
define('DEBUG',true);
require(ROOT.'wx_core/init.php');
require(ROOT.'wx_core/loader.class.php');
require(ROOT.'wx_core/router.class.php');
require(ROOT.'wx_core/dispatcher.class.php');
$router = loader::load("router");
dispatcher::dispatch($router);

if(defined('DEBUG')){
     error_reporting(E_ALL);
}else{
      error_reporting(0);
}
